BSP_ROOT ?= D:/Project/Repo/Private/Dream5C_Stage2/Project_N32G452RCL7_A01_test4_Blues/Project
RTT_ROOT ?= D:/Project/RT-Thread/RT-Thread_Main

CROSS_COMPILE ?=C:\\DevelopProgram\\env_tools\\tools\\gnu_gcc\\arm_gcc\\mingw\\bin\\arm-none-eabi-

CFLAGS := -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections -Dgcc -O0 -gdwarf-2 -g
AFLAGS := -c -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections -x assembler-with-cpp -Wa,-mimplicit-it=thumb  -gdwarf-2
LFLAGS := -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections -Wl,--gc-sections,-Map=rt-thread.map,-cref,-u,Reset_Handler -T board/linker_scripts/link.lds
CXXFLAGS := -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections -Dgcc -O0 -gdwarf-2 -g
EXTERN_LIB := -lm -lc 

CPPPATHS :=-I"D:\Project\Repo\Private\Dream5C_Stage2\Project_N32G452RCL7_A01_test4_Blues\Libraries\N32_Std_Driver\CMSIS\core", \
	-I"D:\Project\Repo\Private\Dream5C_Stage2\Project_N32G452RCL7_A01_test4_Blues\Libraries\N32_Std_Driver\CMSIS\device", \
	-I"D:\Project\Repo\Private\Dream5C_Stage2\Project_N32G452RCL7_A01_test4_Blues\Libraries\N32_Std_Driver\n32g45x_std_periph_driver\inc", \
	-I"D:\Project\Repo\Private\Dream5C_Stage2\Project_N32G452RCL7_A01_test4_Blues\Libraries\rt_drivers", \
	-I$(RTT_ROOT)\components\drivers\include \
	-I$(RTT_ROOT)\components\finsh \
	-I$(RTT_ROOT)\components\libc\compilers\common \
	-I$(RTT_ROOT)\components\libc\compilers\gcc\newlib \
	-I$(RTT_ROOT)\components\libc\posix\io\poll \
	-I$(RTT_ROOT)\components\libc\posix\ipc \
	-I$(RTT_ROOT)\components\utilities\ymodem \
	-I$(RTT_ROOT)\examples\utest\testcases\kernel \
	-I$(RTT_ROOT)\include \
	-I$(RTT_ROOT)\libcpu\arm\common \
	-I$(RTT_ROOT)\libcpu\arm\cortex-m4 \
	-I$(BSP_ROOT) \
	-I$(BSP_ROOT)\applications \
	-I$(BSP_ROOT)\board \
	-I$(BSP_ROOT)\board\msp \
	-I$(BSP_ROOT)\packages\FlexibleButton-v1.0.0 \
	-I$(BSP_ROOT)\packages\regex \
	-I$(BSP_ROOT)\packages\state_machine\inc 

DEFINES := -DHAVE_CCONFIG_H -DN32G45X -DRT_USING_NEWLIB -DUSE_STDPERIPH_DRIVER -D_POSIX_C_SOURCE=1 -D__RTTHREAD__
